package joodle.ui;
/**
 * Representation of the "Ungroup" action on the tool bar
 */
import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.Action;

import joodle.domain.Canvas;
import joodle.si.ResourceManager;

@SuppressWarnings("serial")
public class UnGroupAction extends AbstractAction {

	public UnGroupAction() {
		putValue(Action.SMALL_ICON, ResourceManager.makeIcon("ungroup"));
		putValue(Action.SHORT_DESCRIPTION, "Ungroup");
	}
	/**
	 * @see AbstractAction#actionPerformed(ActionEvent)
	 */	
	@Override
	public void actionPerformed(ActionEvent ae) {
		Canvas.instance().ungroupSelectedShape();
	}

}
